package com.caigou.service;

import java.util.List;

import jiliang.purchase.demo.think_liebiao;
import jiliang.purchase.demo.think_lingxing;
import jiliang.purchase.demo.think_shenqing;
import sch.jl.caigou.impl.GoodsApplyImpl;

public class GoodsApplyService {
	private GoodsApplyImpl GAI = null;
	
	public void setNewApply(List<think_liebiao> list,think_lingxing tlx,think_shenqing tsq,String type)throws Exception
	{
		GAI  = new GoodsApplyImpl(type);
		GAI.setNewApplyLieBiao(list);
		GAI.setNewApplyLingXing(tlx);
		GAI.setNewApplyShenQing(tsq);
	}
	
	public void updateApply(think_lingxing tlx,List<think_liebiao> list_tlb,String bh) throws Exception{
		GAI  = new GoodsApplyImpl();
		GAI.UpdateApplyLingXing(tlx, bh);
		GAI.UpdateApplyLieBiao(list_tlb, bh);
		GAI.updateStates(bh);
	}
	

}
